<!--
	作者：2575202388@qq.com
	时间：2018-10-14
	描述：文化课辅导班历史数据搜索
-->
<template>
    <div style="width:100%;"> 
        <Tetable ref="tdtable" height="450" :columns="columns9" type="post" 
        	:paramiters="tj" :serverUrl="serverUrl" @getSelection="getSelection"></Tetable>
    	<lookbmqk ref="lookbmqk" :wsid="wsid"></lookbmqk>
    </div> 
</template>
<script>
	import lookbmqk from "./../lookbmqk/manage";
	import EditDelLook from "./EditDelLook";
    export default {
    	name: "whkfdbss",
    	props: {
    		tj:{
    			type: Object
    		}
    	},
        data () {
            return {
            	serverUrl:"/host/stgl/whk/Search_whkfdb.html?bmlb=0",
                columns9: [
                    {
                        type: 'selection',
                        width: 60,
                        align: 'center'
                    },{
                        type: 'index',
                        width: 60,
                        title: '序号',
                        align: 'center'
                    },{
                        title: '名称',
                        key: 'MC',
                        width: 120,
                        align: 'center',
                    },{
                        title: '科目',
                        key: 'KM',
                        width: 80,
                        align: 'center'
                    },{
                        title: '年级',
                        key: 'NJ',
                        width: 60,
                        align: 'center'
                    },{
                        title: '班级',
                        key: 'BJ',
                        width: 60,
                        align: 'center'
                    },{
                        title: '辅导班简介',
                        key: 'JJ',
                        align: 'center'
                    },{
                        title: '费用',
                        key: 'FY',
                        width: 60,
                        align: 'center'
                    },
                    {
                        title: '人员限额',
                        key: 'XE',
                        width: 80,
                        align: 'center'
                    },
                    {
                        title: '授课时间',
                        key: 'SKSJ',
                        width: 100,
                        align: 'center'
                    },
                    {
                        title: '授课地点',
                        key: 'SKDD',
                        width: 100,
                        align: 'center'
                    },
                    {
                        title: '操作',
                        key: 'action',
                        width: 120,
                        align: 'center',
                        render: (h, params) => {
                            return h(EditDelLook, {
                            	on: {
                            		//查看报名情况
                            		lookbmqk: () => {
               							this.wsid=params.row.WID;
										this.$refs.lookbmqk.modal0=true;
                                    }, 
                                }
                            });
                        }
                    }
                ],
				wsid:''
            }
        },
        computed: {
		},
		methods: {
			load(){
				this.$refs.tdtable.load();
			},
			getSelection(datas){
				var selects=[...datas];
				this.$emit('getSelection',selects);
			}
	    },
		mounted() {
		},
		watch:{
		},
		components: {
			lookbmqk
		}
    }
</script>


<style scoped="scoped">
	
	.ivu-table-wrapper {
		border:none;
	}
	
	.toolstipdiv{
		width: '100%';
		overflow: 'hidden';
		textOverflow: 'ellipsis';
		whiteSpace: 'normal';
		wordBreak: 'break-all';
		color:'#fff';
		text-align: center;
	}
	.toolstipdiv:hover{
		background:rgb(63, 193, 201);
	}
	
	.ivu-tooltip-rel label:hover{
		color:#0023FB;
	}
	
	.tablediv{
		height: '40px';
		overflow:'hidden';
		line-height: '40px';
	}
</style>



